//
//  VCInformationMoudle.h
//  VC
//
//  Created by 肖康龙 on 2017/8/30.
//  Copyright © 2017年 vsoontech. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface VCInformationMoudle : NSObject
/*获取秘钥*/
-(void)getKeyWithsucceed:(void(^)(id data ))succeed
                    fail:(void(^)(NSError *error))fail;

/*获取下载list*/
-(void)getVideoListWithLinkId:(NSString *)linkId
                      succeed:(void(^)(id data ))succeed
                         fail:(void(^)(NSError *error))fail;

/*加速接口*/
-(NSURLSessionDataTask *)getAccelerateWithLinkId:(NSString *)linkId
                     urlString:(NSString *)urlString
                       succeed:(void(^)(id data ))succeed
                          fail:(void(^)(NSError *error))fail;

/*流量上报
 e.appKey	appkey	 String
 e.resourceID	资源id	String
 e.playTime	播放时长，单位秒	Int
 e.accelSize	加速流量，单位字节	Long
 e.vcSize	Vc总的有效流量	Long
 e.vc		数组
 e.vc.host	Vc节点host	String
 e.vc.tSize	Vc节点总流量，单位字节	Long
 e.vc.vSize	Vc节点有效流量，单位字节	Long
 */
-(void)getReportWithResourceID:(NSString *)resourceID
                      playTime:(NSUInteger)playTime
                     accelSize:(NSUInteger)accelSize
                        vcSize:(NSUInteger)vcSize
                            vc:(NSArray *)vc
                       succeed:(void(^)(id data ))succeed
                          fail:(void(^)(NSError *error))fail;
@end
